import { createRouter, createWebHashHistory,useRoute } from "vue-router"

// 引入动态路由
import dynamicRoutes from "./dynamicRoutes.js"
// console.log(dynamicRoutes);

// 路由元信息


let routes = [
    {  
        // 404页面
        path:"/:page404(.*)*",
        component:()=>import("../pages/page404/index.vue")
    },

    {
        // 登录页面
        path: "/login",
        component: () => import("../pages/login/index.vue")
    }
]


let router = createRouter({
    routes,
    history: createWebHashHistory()
})

export default router;